package com.wanmait.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.community.entity.Unit;

import java.util.List;

public interface UnitMapper extends BaseMapper<Unit> {
    Unit selectUnitByUnameAndBuildingId(Unit unit);

    List<Unit> findUnitByBuildingId(Integer buildingId);

    void deleteUnitByBuildingId(Integer buildingId);

}